package cn.ys.org.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SystemDictionaryDetail {
            private Integer id;
            private String name;
            private Integer typesId;

            // 所属类型
            private SystemDictionary type;

    // 无限极树
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<SystemDictionaryDetail> children = new ArrayList<>();

}
